package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.CardSaleTotal;

public interface CardSaleTotalMapper
{
    int deleteByPrimaryKey(Long cardsaleId);

    int insert(CardSaleTotal record);

    int insertSelective(CardSaleTotal record);

    CardSaleTotal selectByPrimaryKey(Long cardsaleId);

    int updateByPrimaryKeySelective(CardSaleTotal record);

    int updateByPrimaryKey(CardSaleTotal record);

    /**
     * 销售额统计明细 <br/>
     * <p>
     * Description: TODO(详细描述) <br/>
     * <p>
     * Author: Administrator<br/>
     * <p>
     * Date: 2013-12-17-上午11:08:57<br/>
     * <p>
     * 
     * @param beginTime
     * @param endTime
     * @param benginIndex
     * @param pageSize
     * @return
     * 
     */
    List<CardSaleTotal> selectSaleStatistics(@Param("beginTime") String beginTime, @Param("endTime") String endTime,
            @Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    /**
     * 销售额统计总条数 <br/>
     * <p>
     * Description: TODO(详细描述) <br/>
     * <p>
     * Author: Administrator<br/>
     * <p>
     * Date: 2013-12-17-上午11:09:00<br/>
     * <p>
     * 
     * @param beginTime
     * @param endTime
     * @return
     * 
     */
    int selectCountSaleStatistics(@Param("beginTime") String beginTime, @Param("endTime") String endTime);

    /**
     * 净销售总额汇总 <br/>
     * <p>
     * Description: TODO(详细描述) <br/>
     * <p>
     * Author: Administrator<br/>
     * <p>
     * Date: 2013-12-17-上午11:15:57<br/>
     * <p>
     * 
     * @param beginTime
     * @param endTime
     * @return
     * 
     */
    float selectTotalSaleAmount(@Param("beginTime") String beginTime, @Param("endTime") String endTime);
}